package com.explorati.design_pattern.creational.builder.example2;

/**
 * 电脑类，下面被两个子类继承，子类中添加自己的专有属性，并赋予get set方法 
 * 建造者中分别建造两种类型的子电脑
 * 
 * @author explorati
 *
 */
public class Computer {

	// 类型
	private String type;
	// CPU
	private String cpu;
	// 内存
	private String ram;
	// 硬盘
	private String hardDisk;
	// 显示器
	private String monitor;
	// 操作系统
	private String os;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCpu() {
		return cpu;
	}

	public void setCpu(String cpu) {
		this.cpu = cpu;
	}

	public String getRam() {
		return ram;
	}

	public void setRam(String ram) {
		this.ram = ram;
	}

	public String getHardDisk() {
		return hardDisk;
	}

	public void setHardDisk(String hardDisk) {
		this.hardDisk = hardDisk;
	}

	public String getMonitor() {
		return monitor;
	}

	public void setMonitor(String monitor) {
		this.monitor = monitor;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	@Override
	public String toString() {
		return "Computer [type=" + type + ", cpu=" + cpu + ", ram=" + ram + ", hardDisk=" + hardDisk + ", monitor="
				+ monitor + ", os=" + os + "]";
	}

}
